﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.SqlServer.Dts.Runtime;
using Microsoft.SqlServer.Dts.Runtime.Design;

namespace PalProjects.SSIS.ControlFlow
{
    public class DropIndexInterface : IDtsTaskUI
    {
        #region -- Private Variables
        private TaskHost taskHost;
        private Connections connections;
        #endregion

        #region -- Empty Constructor
        public DropIndexInterface()
        {
        }
        #endregion

        #region IDtsTaskUI Interface Implementation
        public void Initialize(TaskHost taskHost, IServiceProvider serviceProvider)
        {
            this.taskHost = taskHost;
            IDtsConnectionService cs = serviceProvider.GetService(typeof(IDtsConnectionService)) as IDtsConnectionService;
            this.connections = cs.GetConnections();
        }

        public ContainerControl GetView()
        {
            return new DropIndexEditor(taskHost, connections);
        }

        public void Delete(IWin32Window parentWindow)
        {
        }

        public void New(IWin32Window parentWindow)
        {
        }
        #endregion
    }
}
